package game

import (
	v1 "qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"

	"github.com/gin-gonic/gin"
)

type QmGameRouter struct {
}

func (s *QmGameRouter) InitQmGameRouter(Router *gin.RouterGroup) {
	qmGameRouter := Router.Group("qmGame").Use(middleware.OperationRecord())
	qmGameRouterWithoutRecord := Router.Group("qmGame")
	var qmGameApi = v1.ApiGroupApp.GameApiGroup.QmGameApi
	{
		qmGameRouter.POST("createQmGame", qmGameApi.CreateQmGame)
		qmGameRouter.DELETE("deleteQmGame", qmGameApi.DeleteQmGame)
		qmGameRouter.PUT("updateQmGame", qmGameApi.UpdateQmGame)
	}
	{
		qmGameRouterWithoutRecord.GET("findQmGame", qmGameApi.FindQmGame)
		qmGameRouterWithoutRecord.GET("getQmGameList", qmGameApi.GetQmGameList)
	}
}
